package cn.zt.service;

import cn.zt.common.Result;
import cn.zt.domain.Bankcard;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 86182
* @description 针对表【bankcard(银行卡表
)】的数据库操作Service
* @createDate 2024-09-03 19:10:48
*/
public interface BankcardService extends IService<Bankcard> {

    Result selectByNickname(String name);


    //根据银行卡号查询银行卡信息
    Bankcard selectByBankCard(String bankCard);


    //根据名字查银行卡号
    List<Bankcard> selectBankCardByName(String nickname);



    int addBankcard(Bankcard bankcard);

    //根据银行卡卡号修改余额
    int updateBalance(String bankcard,Integer money);

    List<Bankcard> selectByBankCardname(String nickname);

    Result selectByThree(Bankcard bankcard);

    Result getCardAll(String nickname);

    Bankcard getBankCard(String bankCard);

    int jiBalance(String bankCard, Integer money);

    int jaBalance(String bankCard, Integer money);
    Bankcard selectBankCardByNickName(String nickname);

    Integer findId(String bankCard);


    Result findCards(String nickname);

//    Result myCount(String nickname);

//    Result findBankcardBalance(String nickname);
}
